﻿<Window x:Class="SampleDdeCustomTable.CandlesWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:EcngTradingXaml="clr-namespace:StockSharp.Xaml;assembly=StockSharp.Xaml"
	Title="Исторические свечки" Height="300" Width="800">
	<Window.Resources>
		<EcngTradingXaml:BackgroundConvertor x:Key="myConverter" />

		<Style x:Key="myItemStyle" TargetType="{x:Type ListViewItem}">
			<Setter Property="Background">
				<Setter.Value>
					<Binding RelativeSource="{RelativeSource Self}" Converter="{StaticResource myConverter}"/>
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>
    <Grid>
        <ListView x:Name="CandleDetails" Grid.Column="0" Grid.Row="0" ItemContainerStyle="{StaticResource myItemStyle}">
			<ListView.View>
				<GridView>
                    <GridViewColumn Width="100" Header="SecCode" DisplayMemberBinding="{Binding Path=SecCode}" />
                    <GridViewColumn Width="100" Header="seccode_trans" DisplayMemberBinding="{Binding Path=seccode_trans}" />
                    <GridViewColumn Width="100" Header="per" DisplayMemberBinding="{Binding Path=per}" />
					<GridViewColumn Width="100" Header="Дата" DisplayMemberBinding="{Binding Path=date}" />
					<GridViewColumn Width="100" Header="Время" DisplayMemberBinding="{Binding Path=time}" />
					<GridViewColumn Width="100" Header="Открытие" DisplayMemberBinding="{Binding Path=OpenPrice}" />
					<GridViewColumn Width="100" Header="Макс" DisplayMemberBinding="{Binding Path=HighPrice}" />
					<GridViewColumn Width="100" Header="Мин" DisplayMemberBinding="{Binding Path=LowPrice}" />
					<GridViewColumn Width="100" Header="Закрытие" DisplayMemberBinding="{Binding Path=ClosePrice}" />
					<GridViewColumn Width="100" Header="Объем" DisplayMemberBinding="{Binding Path=Volume}" />
                    <GridViewColumn Width="100" Header="MACD" DisplayMemberBinding="{Binding Path=MACD}" />
                    <GridViewColumn Width="100" Header="MACDG" DisplayMemberBinding="{Binding Path=MACDG}" />
                    <GridViewColumn Width="100" Header="MACDS" DisplayMemberBinding="{Binding Path=MACDS}" />
                    <GridViewColumn Width="100" Header="Elder" DisplayMemberBinding="{Binding Path=elder}" />
                    <GridViewColumn Width="100" Header="tenkan" DisplayMemberBinding="{Binding Path=tenkan}" />
                    <GridViewColumn Width="100" Header="kijun" DisplayMemberBinding="{Binding Path=kijun}" />
                    <GridViewColumn Width="100" Header="senkou_span1" DisplayMemberBinding="{Binding Path=senkou_span1}" />
                    <GridViewColumn Width="100" Header="senkou_span2" DisplayMemberBinding="{Binding Path=senkou_span2}" />
                    <GridViewColumn Width="100" Header="chinkou" DisplayMemberBinding="{Binding Path=chinkou}" />
                </GridView>
			</ListView.View>
		</ListView>
    </Grid>
</Window>
